package com.workManager.service;

import com.github.pagehelper.PageInfo;
import com.workManager.pojo.TdMenu;
import com.workManager.vo.MenuVo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Thinkpad on 2017/2/16 0016.
 */
public interface MenuService {
    int add(TdMenu menu);
    int delete(String menuId);
    int deleteByList(List<String> menuIds);
    int update(TdMenu menu);
    PageInfo<MenuVo> query(Map<String,Object> map);
    PageInfo<MenuVo> queryLikeMeunName(Map<String,Object> map);
    List<MenuVo> queryFunctionMenu(String loginCode);
    List<MenuVo> queryParentMenu();
}
